﻿ 
namespace Core.Items.Modules
{
    /*

		MetaGroup                      = IndustrialModules
		Group                          = HarvesterModules
		Size                           = Small
		Module                         = protrim fdv-30 small harvester prototype
		CpuUsage                       = 42.00 TF
		ReactorUsage                   = 31.00 RP
		Type                           = Active
		Slot                           = Industrial
		TechnologicalLevel             = T4P
		Mass                           = 300.00 kg
		PackedVolume                   = 0.50 U
		Volume                         = 1.00 U
		AccumulatorConsumption         = 20.00 AP
		CycleTime                      = 12.50 sec
		OptimalRange                   = 30 m
		AmmoChargeType                 = Harvester charges
		AmmoChargeCapacity             = 55 pcs
    */

    using System;
    using Base;
    using Contracts.Enums;
    using Contracts.Interfaces;
    using Extensions;
    using Features;
    
    /// <summary>
    /// Protrim FDV-30 small harvester prototype module class
    /// </summary>
    /// <remarks>File generated on 31/10/2011 16:00:55</remarks>
    public sealed class ProtrimFdv30SmallHarvesterPrototype : ModuleBase
    {
        /// <summary>
        /// Create a new instance of the <see cref="ProtrimFdv30SmallHarvesterPrototype"/> class.
        /// </summary>
        public ProtrimFdv30SmallHarvesterPrototype()
            : base(
            "Protrim FDV-30 small harvester prototype",
            "",
            ModuleMetaGroupsEnum.Industrial,
            ModuleGroupsEnum.HarvesterModules,
            TechnologyLevelsEnum.Level4|TechnologyLevelsEnum.Prototype,
            SizesEnum.Small,
            new LazyFeature[] { 
				new LazyFeature(typeof(IndustrialCpuUsage<double>),42.00),
				new LazyFeature(typeof(IndustrialReactorUsage<double>),31.00),
				new LazyFeature(typeof(ModuleMass<double>),300.00),
				new LazyFeature(typeof(HarvesterAccumulatorUsage<double>),20.00),
				new LazyFeature(typeof(HarvesterCycleTime<double>),12.50),
				new LazyFeature(typeof(HarvesterOptimal<double>),30),
				new LazyFeature(typeof(AmmunitionType<AmmunitionTypesEnum>),AmmunitionTypesEnum.HarvesterCharges),
				new LazyFeature(typeof(AmmoCapacity<double>),55), },
            null,
            new IModifier[] { 
				new Modifier( FeatureTypesEnum.Robot, FeaturesEnum.RobotMass, 300.00 ){ IsVisible = false }, } )
        {
        }

        /// <summary>
        /// Obtains the activation type
        /// </summary>
        public override ModuleActivationTypesEnum ActivationType
        {
            get { return ModuleActivationTypesEnum.Active; }
        }
        /// <summary>
        /// Obtains the module slot group 
        /// </summary>
        public override SlotGroupsEnum SlotGroup
        {
            get { return SlotGroupsEnum.Chassis; }
        }
        /// <summary>
        /// Obtains the module slot type 
        /// </summary>
        public override SlotTypesEnum SlotType
        {
            get { return SlotTypesEnum.Industrial; }
        }
    }
}